import java.util.Scanner;

public class Main1813 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] arr = new int[n];
        for (int i = 0; i < n; i++) {
            arr[i] = sc.nextInt();
        }
        int max=0;
        for (int i = 0; i < arr.length; i++) {
            if (max < arr[i]) {
                max = arr[i];
            }
        }
        double s=3.14*max*max;
        int a=0;
        for (int i=0;i<n;i++){
            if (arr[i]==max){
                a=i+1;
            }
        }
        System.out.println(String.format("%.2f",s)+" "+a);
    }
}
